package com.sp.system.user.customer.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sp.system.user.core.entity.User;
import com.sp.system.user.customer.mapper.UserMapper;
import com.sp.system.user.customer.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {

    @Autowired
    UserMapper userDao;

    @Override
    public List queryUserList() {
        return baseMapper.queryUserList();
    }

    @Override
    public User getUserByLoginName(String loginName) {
        return baseMapper.getUserByLoginName(loginName);
    }
}
